<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="rss.css"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
	<channel>
		<title>Living Word Baptist Church Sermon RSS/Podcast Feed</title>
		<link>http://www.lwbc.net/</link>
		<language>en-us</language>
		<description>This is the Living Word Baptist Church sermon RSS and Podcast feed.  Subscribe to this web address in iTunes for Podcasting.</description>

		<itunes:subtitle>Sermons</itunes:subtitle>
		<itunes:author>Living Word Baptist Church</itunes:author>
		<itunes:summary>This is the Living Word Baptist Church Podcast of Sunday Sermons.  If you have any questions please email admin@lwbc.net.</itunes:summary>
		<itunes:owner>
			<itunes:name>Living Word Baptist Church</itunes:name>
			<itunes:email>lwbc@lwbc.net</itunes:email>
		</itunes:owner>
		<itunes:category text="Christianity"/>
<?php 
	include_once("Media.conf.php");
	global $DB;
	$DB->query("select * from media");
	while($row = $DB->fetch_row()) {
		print '<item>';
		print '<title>' . $row['title'] . '</title>';
		print '<enclosure url="http://www.lwbc.net' . $row['url'] . '" type="audio/x-mp3" />';
		print '<guid>http://www.lwbc.net' . $row['url'] . '</guid>';
		print '<pubDate>' . $row['posted_date'] . '</pubDate>';
		print '<description></description>';
		
		print '<itunes:author>' . $row['speaker'] . '</itunes:author>';
		print '<itunes:subtitle>' . $row['subtitle'] . '</itunes:subtitle>';
		print '<itunes:summary>' . $row['summary'] . '</itunes:summary>';
		print '<itunes:duration>' . $row['duration'] . '</itunes:duration>';
		print '<itunes:keywords>sermon</itunes:keywords>';
		print '</item>';
	}
?>
</channel>
</rss>